<meta charset="UTF-8">
<?php
/**
 * [配置项]
 * @param [type] $name  [description]
 * @param [type] $value [description]
 */
function func($name=null,$value=null)
{
	static $confing = array();
	
	if(is_null($name)){
		return $confing;
	}else if (is_array($name)) {
		$confing = array_merge($confing,$name);
	}else if (is_string($name)) {
		if (is_null($value)) {
		return isset($confing[$name])?$confing[$name]:null;
		}else{
			return $confing[$name]=$value;
		}
	}
		
}



$confing = require 'db.php';
func($confing);
var_dump(func());



?>